generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 175
docs(event-handler): add documentation for RESt API #4464
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sdangol
requested changes
Sep 11, 2025
sdangol
requested changes
Sep 11, 2025
dreamorosi
reviewed
Sep 11, 2025
sdangol
requested changes
Sep 11, 2025
Co-authored-by: Swopnil Dangol <[email protected]>
Co-authored-by: Swopnil Dangol <[email protected]>
Co-authored-by: Swopnil Dangol <[email protected]>
Co-authored-by: Swopnil Dangol <[email protected]>
Co-authored-by: Swopnil Dangol <[email protected]>
Co-authored-by: Swopnil Dangol <[email protected]>
Co-authored-by: Swopnil Dangol <[email protected]>
Co-authored-by: Swopnil Dangol <[email protected]>
Co-authored-by: Swopnil Dangol <[email protected]>
Co-authored-by: Swopnil Dangol <[email protected]>
Co-authored-by: Swopnil Dangol <[email protected]>
Co-authored-by: Swopnil Dangol <[email protected]>
Co-authored-by: Swopnil Dangol <[email protected]>
Co-authored-by: Swopnil Dangol <[email protected]>
…e text in error handling section
0e21a0f
to
3da83bb
Compare
|
sdangol
approved these changes
Sep 11, 2025
dreamorosi
approved these changes
Sep 11, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
documentation
Improvements or additions to documentation
size/XXL
PRs with 1K+ LOC, largely documentation related
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Adds documentation for the event handler REST API
Changes
Getting Started
Added a Getting Started section with the following sections:
Getting Started Examples
gettingStarted_serialization.ts
- Response auto-serializationgettingStarted_dynamic_routes.ts
- Dynamic URL parameters (:todoId
)gettingStarted_methods.ts
- HTTP method handling (GET
,POST
, etc.)gettingStarted_multi_methods.ts
- Multiple HTTP methods supportAdvanced
Added an Advanced section with the following sections:
Middleware Section
The Middleware section contains:
app.use()
for application-wide functionality (complete)Advanced Examples
advanced_mw_global_middleware.ts
- Global middleware with loggingadvanced_mw_route_middleware.ts
- Route-specific middleware with timestampsadvanced_mw_middleware_order.ts
- Middleware execution order demonstrationadvanced_mw_early_return.ts
- Authentication middleware with early returnsadvanced_fine_grained_responses.ts
- Web API Response object for custom headers/statusConsiderations Section
Added guidance for Monolithic vs Micro function patterns:
Visual Documentation
Added visual documentation:
Sample JSON Responses
All examples include corresponding Lambda proxy response samples:
samples/gettingStarted_*.json
- Basic feature responsessamples/advanced_mw_*.json
- Middleware execution responsessamples/advanced_*.json
- Advanced feature responsesInfrastructure Templates
Added SAM templates:
templates/api_gateway.yml
- API Gateway proxy integrationtemplates/lambda_furl.yml
- Lambda Function URL configurationIssue number: closes #4395
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.